package com.zygh.coordinatestore;

import com.zygh.coordinatestore.util.UdpServer;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.scheduling.annotation.EnableScheduling;


@SpringBootApplication
@MapperScan(value = "com.zygh.coordinatestore.mapper")
@EnableScheduling
public class CoordinatestoreApplication {

    public static void main(String[] args) {
        ConfigurableApplicationContext content = SpringApplication.run(CoordinatestoreApplication.class, args);
        UdpServer bean = content.getBean(UdpServer.class);
        bean.start();
    }

}

